-- GENERATED SPELL FOR [Corp'rethar Guardian] --


function spell0_32280(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(60927,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32280', 15000, 1)
end

function spell1_32280(pUnit, Event) --@Mortal Wound,Heal--
pUnit:FullCastSpellOnTarget(54378,pUnit)
pUnit:RegisterEvent('Sorts_32280', 15270, 1)
end

function Sorts_32280(pUnit, Event)
local choix_sorts_32280 = math.random(0, 1)
if choix_sorts_32280 == 0 then
pUnit:RegisterEvent('spell0_32280', 1, 1)
end
if choix_sorts_32280 == 1 then
pUnit:RegisterEvent('spell1_32280', 1, 1)
end
end

function mob32280_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32280', math.random(1500, 3000), 1)
end

function mob32280_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32280_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32280_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32280, 1, 'mob32280_Action')
RegisterUnitEvent(32280, 2, 'mob32280_Leave')
RegisterUnitEvent(32280, 3, 'mob32280_Kill')
RegisterUnitEvent(32280, 4, 'mob32280_Die')
